<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateAkbusAccountImportTemplate extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('akbus_accounting_import_template', function (Blueprint $table) {
            $table->id();
            $table->string('table_name')->nullable()->comment('表名');
            $table->string('column_name')->nullable()->comment('列名字');
            $table->string('column_type')->nullable()->comment('列类型');
            $table->decimal('sort', 10, 1)->nullable()->comment('排序值');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('akbus_accounting_import_template');
    }
}
